<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport"
	content="width=device">
	<title>Document</title>
</head>
<body>
	<h2 align="center">学生信息</h2>
	<table border="1" cellpadding="5" cellspacing="0" align="center" width="60%">
		<tr align="center">
			<th>学段</th>
			<th>值</th>
		</tr>
		<tr align="center">
			<td>姓名</td>
			<td><?php echo $data['id'];?></td>
		</tr>
		<tr align="center">
			<td>邮箱</td>
			<td><?php echo $data['name'];?></td>
		</tr>
		<tr align="center">
			<td>课程</td>
			<td><?php echo $data['course'];?></td>
		</tr>
		<tr align="center">
			<td>成绩</td>
			<td
				<?php 
				if($data['grade']<60){echo 'style="color:red"'}
				?>

			><?php echo $data['grade'];?></td>
		</tr>
		

	</table>
	<p align="center"
		<?php 
		if($data['grade']<60){echo 'style="color:red"'}
		?>
	>

		<?php if ($data['grade']<60){
		echo '不及格，需要补考~~';
	}else{
	echo '恭喜，毕业啦~~';
}?>

	</p>
	
</body>